﻿using MediatR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Digitalmes
{
    // WTM专属Mediator包装器
    public class WtmMediator
    {
        private readonly IMediator _mediator;

        public WtmMediator(IMediator mediator) => _mediator = mediator;

        public Task<TResponse> Send<TResponse>(IRequest<TResponse> request)
            => _mediator.Send(request);

        public Task Send(IRequest request)
            => _mediator.Send(request);
    }
}
